import { v4 as uuidv4 } from 'uuid'
// 生成临时唯一uid
export default function () {
  let uuidToken = localStorage.getItem('uuidToken')
  if (!uuidToken) {
    uuidToken = uuidv4()
    localStorage.setItem('uuidToken', uuidToken)
  }
  return uuidToken
}
